package com.gator.desig_mode.dicorator.test;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc 被装饰者
 */
public abstract class CakeComponent {

  private String desc;

  private float price;

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public float getPrice() {
    return price;
  }

  public void setPrice(float price) {
    this.price = price;
  }

  //计算价格
  public abstract float cost();
}
